import { createApp } from 'vue'
import Antd from 'ant-design-vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ProLayout, { PageContainer } from '@ant-design-vue/pro-layout'
import 'ant-design-vue/dist/antd.css'
import '@ant-design-vue/pro-layout/dist/style.css'
import  * as Icons from '@ant-design/icons-vue'
import '@/permission'

const app = createApp(App);
app.config.productionTip = false;

app.use(store).use(router).use(Antd).use(ProLayout).use(PageContainer).mount('#app')

const icons = Icons;
for (const i in icons){
    app.component(i, icons[i])
}
